package com.art8173.mapper;

import com.art8173.pojo.Student;
import com.art8173.pojo.StudentQueryParam;
import org.apache.ibatis.annotations.MapKey;
import org.apache.ibatis.annotations.Mapper;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

@Mapper
public interface StudentMapper {
    List<Student> page(StudentQueryParam studentQueryParam);

    void save(Student student);

    Student getInfo(Integer id);

    void update(Student student);

    void deleteByIds(ArrayList<Integer> ids);

    void updateViolation(Integer id, Short score);

    @MapKey("degree")
    List<Map<String, Integer>> countStudentDegreeData();

}
